<template>
  <!-- checkout pay -->
  <div class="checkout-pay">
    <div class="title">
      {{ title }}
    </div>
    <div class="checkout-pay-container">
      
      <div class="btn">
        Place Order
      </div>
    </div>
    <div class="code">
      <span>Apply Discount Code</span>
      <i :class="is_apply?'el-icon-arrow-up': 'el-icon-arrow-down'" @click="is_apply = !is_apply"></i>
    </div>
    <input type="text" v-show="is_apply" />
    <div class="btn"  v-show="is_apply">
      Apply Discount
    </div>
  </div>
</template>

<script>
export default {
  name: "",
  props: [""],
  data() {
    return {
      title: "Payment Method",
      num: "",
      checked: false,
			is_apply: false
    };
  },

  components: {},

  computed: {},

  beforeMount() {},

  mounted() {},

  methods: {},

  watch: {}
};
</script>
<style lang="scss" scoped>
.checkout-pay {
  .title {
    color: #333;
    font-weight: 700;
    padding-bottom: 20px;
    margin-top: 20px;
  }

  .checkout-pay-container {
    padding: 16px;
    border: 1px solid #e2e2e2;
    .pay-by-card {
      font-size: 14px;
      color: #969696;
      font-weight: bold;
      .el-image {
        width: 33px;
        height: 22px;
        margin-right: 10px;
        vertical-align: bottom;
      }
    }

    .info {
      margin-left: 10px;
      font-size: 12px;
    }

    .enter-card {
      color: #000;
      font-weight: 500;
      i {
        font-size: 24px;
      }
    }
  }
  .btn {
    color: #fff;
    height: 54px;
    line-height: 54px;
    text-align: center;
    border-radius: 5px;
    width: 280px;
    background: #1a1a1a;
    margin: 20px 0;
    cursor: pointer;
  }
  input {
    width: 100%;
    height: 30px;
    border: 0;
    border-bottom: 1px solid #e2e2e2;
    margin-bottom: 10px;
    outline: 0;
    font-size: 14px;
    color: #000;
    padding: 5px 0;
    border-radius: 5px;
    &:focus {
      border-bottom-color: #1a1a1a;
    }
  }
	.code {
		margin-top: 20px;
		i {
			cursor: pointer;
		}
	}
}
</style>
